<?php
###
#  Baing PHP 框架 1.0.0
#  http://baing.co/
#
#  Copyright: 白晓阳
#  License: CC BY-NC-SA 4.0
#  https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh
###

namespace bai\process;

use bai\Action;


class Data extends \bai\Process
{
    protected const PATH = '/data/:resource/:<query>id?';

    protected function get(): array
    {
        $actions = [
            [
                'action' => 'Validate',
                'order' => Action::ORDER_PRE
            ],
            ['action' => 'DataAccess'],
        ];
        return $actions;
    }

    protected function post(): array
    {
        $actions = [
            [
                'action' => 'Validate',
                'order' => Action::ORDER_PRE
            ],
            ['action' => 'DataAccess'],
        ];
        return $actions;
    }

    protected function patch(): array
    {
        $actions = [
            [
                'action' => 'Validate',
                'order' => Action::ORDER_PRE
            ],
            ['action' => 'DataAccess'],
        ];
        return $actions;
    }

    protected function delete(): array
    {
        $actions = [
            [
                'action' => 'Validate',
                'order' => Action::ORDER_PRE
            ],
            ['action' => 'DataAccess'],
        ];
        return $actions;
    }
}
